import gugga.common.UIComponentEx;
import mx.events.EventDispatcher;
import gugga.common.IEventDispatcher;

/**
 * @author Krasimir
 */
[Event("test")]
[Event("eventDispatched")]
class guggaLibTests.support.EventSource extends EventDispatcher implements IEventDispatcher
{	
	public function EventSource() 
	{
		super();
	}

	public function dispatchTest()
	{
		dispatchEvent({type:"test", target:this});
	}

	public function dispatch(eventName:String)
	{
		dispatchEvent({type:eventName, target:this});
		dispatchEvent({type:"eventDispatched", target:this});
	}

	public function dispatchEventLater(eventObj:Object) : Void 
	{
	}
}